<?php
echo $this->SwitchLang();
?>
<table class="hd">
	<tr>
		<td class="left-icons">
			<a class="openPanes icon icon-arrow-right" target="west" href="#" title="<?php echo Mozg_Lang::_('EXPAND'); ?>"></a>
		</td>
		<td class="left-icons">
			<a class="togglePanes icon icon-expand" target="north,east,west" href="#" title="<?php echo Mozg_Lang::_('EXPAND/COLLAPSE'); ?>"></a>
		</td>
		<td class="title"><h1><?=$this->title;?></h1></td>
		<?php
        foreach ($this->icons as $iconset)
        {
        	?><td class="right-icons"><?php echo $this->GetTpl('Icon')->GetIconSet($iconset, 'mainblock');?></td><?php
        }
		?>
		<td class="right-icons">
			<a class="openPanes icon icon-arrow-left" target="east" href="#" title="<?php echo Mozg_Lang::_('EXPAND'); ?>"></a>
		</td>
	</tr>
</table>
<div class="wraper">
	<div class="ui-layout-content">
	<?php
	if (!$this->wide)
	{
		?><div class="content"><?=$this->content;?></div><?php
	}
	else
	{
		echo $this->content;
	}
	?>
	</div>
</div>